#!/bin/bash
set -e

password=${DEF_ROOT_PASS:-P@88w0rd}
echo "root:${password}" | chpasswd
echo "=========================================="
echo "root password: $password"
echo "=========================================="

mkdir -p /run/sshd /var/log/supervisor /var/log/supervisor /var/run
exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf

